﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Assignment1.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
        <asp:Repeater ID="rpt_Message" runat="server" OnItemCommand="rpt_Message_ItemCommand">
        <ItemTemplate>
        <table width="600px" style="border:solid 1px #666666; font-size:10pt; background-color:#f0f0f0">
            <tr>
            <td align="left" width="400px">
            <%# Eval("Message")%>
            </td>
            <td align="right" width="200px">
            <%# Eval("PostTime")%> - <%# Eval("UserName")%>
            </td>
            </tr>
            <tr>
            <td colspan="2" align="right">
            <hr width="300px" />
            <asp:Button ID="btn_DeleteMessage" runat="server" Text="删除留言" CommandName="DeleteMessage" CommandArgument='<%# Eval("ID")%>'/>
            管理员回复：<asp:TextBox runat="server" ID="tb_Reply" TextMode="MultiLine" Width="300px" Text='<%# Eval("Reply")%>'/>
            <asp:Button ID="btn_SendReply" runat="server" Text="发表回复" CommandName="SendReply" CommandArgument='<%# Eval("ID")%>'/>
            </td>
            </tr>          
        </table>
        <br/>
        </ItemTemplate>
        </asp:Repeater>
    </div>

</asp:Content>
